package com.wskj.controller.my;

import com.wskj.common.core.domain.AjaxResult;
import com.wskj.system.service.ISysShareService;
import com.wskj.workbench.vo.app.AppShareVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = {"小程序码管理"})
@AllArgsConstructor
@RestController
@RequestMapping("/api/share")
public class ApiShareController {

    private final ISysShareService iSysShareService;


    @ApiOperation("生成小程序码")
    @PostMapping("/code")
    public AjaxResult<AppShareVo> code() throws Exception {
        AppShareVo map = iSysShareService.code();
        return AjaxResult.success(map);
    }

}
